package com.just.springbootmessage;

import com.just.springbootmessage.rabbitmq.SendMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/rabbitmq")
public class RabbitMQController {
    @Autowired
    private SendMessageService sendMessageForTrans;
    @RequestMapping("/trans")
    public String testTrans(){
        sendMessageForTrans.sendTrans();
        return "ok";
    }
}
